//
//  TLRegistFindVC.m
//  LoanSimulat
//
//  Created by mc on 2017/10/27.
//  Copyright © 2017年 mc. All rights reserved.
//

#import "TLRegistFindVC.h"

@interface TLRegistFindVC ()
@property (weak, nonatomic) IBOutlet UIView *viewPhone;
@property (weak, nonatomic) IBOutlet UIView *viewCode;
@property (weak, nonatomic) IBOutlet UIView *viewCodeCall;
@property (weak, nonatomic) IBOutlet UIView *viewPwd;

@property (weak, nonatomic) IBOutlet UIView *viewDelegate;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *layoutViewDelH;

@property (weak, nonatomic) IBOutlet UIButton *btnDelegateSel;
@property (weak, nonatomic) IBOutlet TLBaseButton *btnPost;

@end

@implementation TLRegistFindVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initUI];
    [self initData];
    
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - 初始化
#pragma mark -
#pragma mark ---初始化UI
-(void)initUI {
    [self setLeftCustomerItem];
    
    [_viewPhone setViewRadius:4 BorderW:1 Color:UIColorFormRGB_line_E8];
    [_viewCode setViewRadius:4 BorderW:1 Color:UIColorFormRGB_line_E8];
    [_viewCodeCall setViewRadius:4 BorderW:1 Color:UIColorFormRGB_line_E8];
    [_viewPwd setViewRadius:4 BorderW:1 Color:UIColorFormRGB_line_E8];
    
    [_btnPost setBackgroundColor:UIColorFormRGB_theme];
    if (!_isRegister) {
        _viewDelegate.layer.masksToBounds = YES;
        _viewDelegate.hidden = YES;
        _layoutViewDelH.constant = 1;
        [_btnPost setTitle:@"提交" forState:UIControlStateNormal];
    } else {
        [_btnPost setTitle:@"注册" forState:UIControlStateNormal];
    }
}
#pragma mark ---初始化数据
-(void)initData {
    
}

- (IBAction)btnDelAction:(id)sender {
    _btnDelegateSel.selected = !_btnDelegateSel.selected;
}

#pragma mark - 请求 事件
#pragma mark -

#pragma mark ---btn post/register
- (IBAction)btnNextAction:(id)sender {
    if (_isRegister) {
        [self getReqForRegister];
        return;
    }
    [self getReqForPost];
}

#pragma mark ---请求 提交
-(void)getReqForPost {
    
}
#pragma mark ---请求 提交
-(void)getReqForRegister {
    
}





@end
